<?php

/**
 * CargaHoraria form.
 *
 * @package    sistema_estadisticas
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class CargaHorariaForm extends BaseCargaHorariaForm
{

	public function configure()
	{
		$this->widgetSchema['planificacion_id'] = new sfWidgetFormInputHidden();
		$this->widgetSchema['fecha_inicio'] = new WidgetFormDatePick();
		$this->widgetSchema['fecha_fin'] = new WidgetFormDatePick();
		$this->widgetSchema['paralelo'] = new sfWidgetFormChoice(array('choices' => Constantes::$PARALELOS));

		$this->widgetSchema['fecha_inicio']->setAttribute('class', 'admin_date_input');
		$this->widgetSchema['fecha_fin']->setAttribute('class', 'admin_date_input');

		$this->validatorSchema['planificacion_id'] = new sfValidatorPass();
		$this->validatorSchema['paralelo'] = new sfValidatorChoice(array('choices' => Constantes::$PARALELOS));
	}

}
